import java.util.Scanner;

public class Add {
    public static int Add(int a,int b){
        int m = a + b;
        return m;
    }
    public static double Add(double c,double d,double e){
        return c + d + e;
    }
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        double c = 1.2;
        double d = 2.4;
        double e = 3.6;
        int rec = Add(a,b);
        System.out.println(rec);
        double ret = Add(c,d,e);
        System.out.println(ret);
    }
}
